package com.chouren.goandroid.animate.effect;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;

/**
 * animate from view's parent bottom to view position
 * 
 * @author TangLong
 * @date 2014年8月14日
 */
public class SlideInFromBottomEffect extends BaseEffect {

	@Override
	protected void setAnimators(View view) {
		getAnimatorSet().playTogether(
				ObjectAnimator.ofFloat(view, "alpha", 0f, 1f),
				ObjectAnimator.ofFloat(view, "translationY", 500, 0));
	}

}
